﻿@model IEnumerable<thailandProject.Models.CLIENT>

@{
    ViewBag.Title = "Add Client";
}

<div id="Wrapper2">
    <div id="content_header">
        <div id="headerimage">
        </div>
        <div id="theheader">@ViewBag.Header</div>
    </div>
    <!-- Left Column begins here -->
    <aside id="sidebar-wrapper">
        <nav class="sidebar">
            <!-- CONTENT GOES HERE -->


<p>
    @Html.ActionLink("Create New", "AddClient")
</p>
<table>
    <tr>
        <th>
            clientFirstName
        </th>
        <th>
            clientLastName
        </th>
        <th>
            clientEmail
        </th>
        <th>
            clientStateProvidence
        </th>
        <th>
            clientNotes
        </th>
        <th>
            clientPassportNum
        </th>
        <th>
            clientAddress
        </th>
        <th>
            clientCity
        </th>
        <th>
            ccISO2
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.clientFirstName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.clientLastName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.clientEmail)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.clientStateProvidence)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.clientNotes)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.clientPassportNum)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.clientAddress)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.clientCity)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ccISO2)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.clientID }) |
            @Html.ActionLink("Details", "ViewClient", new { id=item.clientID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.clientID })
        </td>
    </tr>
}

</table>

            
        </nav>
    </aside>
    <!-- Right column begins here -->
    <article id="contents">
        Content
    </article>
    <!-- Right column ends here -->
</div>
<!-- Div wrapper2 ends here -->